package cn.wolfcode.luowowo.hotel.domain;

import cn.wolfcode.luowowo.domain.BaseDomain;
import cn.wolfcode.luowowo.member.domain.UserInfo;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 酒店订单
 *
 * @author win
 */
@Getter
@Setter
public class HotelOrder extends BaseDomain {

    /**
     * 用户
     */
    private UserInfo user;

    /**
     * 入住时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date checkTime;

    /**
     * 退房时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date checkOutTime;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 订房总数
     */
    private Integer rooms;

    /**
     * 订房的类型
     */
    private HotelRoomType roomType;

    /**
     * 酒店
     */
    private Hotel hotel;

}